package com.css.fxfzypg.modules.SettingSeismic.service;


import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.SettingSeismic.entity.SeismicIntensityRelation;
import com.css.fxfzypg.modules.SettingSeismic.entity.SettingSeismicProcess;
import com.css.fxfzypg.modules.SettingSeismic.queryParams.SeismicRelationQueryParams;
import com.css.fxfzypg.modules.model.entity.IntensityAttenuation;

import java.io.UnsupportedEncodingException;

/**
 * @Description: fxfzypg
 * @Author: lhl
 * @CreateDate: 2022/10/20 14:25
 */
public interface IntensityRelationService {

    RestResponse getAll(String taskId) throws UnsupportedEncodingException;

    RestResponse getDefault1ByTaskId(String taskId);

    RestResponse getModelByTaskId(SeismicRelationQueryParams queryParams, int curPage, int pageSize);

    RestResponse selectModel(String taskId, String modelId, String type);
    SeismicIntensityRelation getByTaskId(String taskId);

    RestResponse saveIntensityAttenuation(String taskId,IntensityAttenuation entity);
    RestResponse saveSettingSeismicProcess(String taskId,SettingSeismicProcess entity,String range);

    RestResponse saveSeismicIntensityRelation(SeismicIntensityRelation entity);
    int updateSeismicIntensityRelation(SeismicIntensityRelation entity);

    int deleteSsiByTaskId(String taskId);
    int deleteSipByTaskId(String taskId);

    RestResponse getSettingSeismicProcessById(String id);

    void updateSeismicIntensityRelationByTaskId(String id);
}
